<?php
@session_start();
error_reporting(E_ALL);

define('PHP5_VERSION_REQ',(float)phpversion());
define('SYS_NAMESPACE',(PHP5_VERSION_REQ>=5.3)?true:false);

define('CURR_URL',(($_SERVER['SERVER_PORT']==443)?'https':'http').'://'.$_SERVER["SERVER_NAME"] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['SCRIPT_NAME'] );

//checking PHP version
if(!isset($_SESSION['iwc3'])) {
	$tmp=substr(phpversion(),0,1);
	$tmp=$tmp.'.'.str_replace('.','',substr(phpversion(),2,3));
	$ver=(float) $tmp;
	if($ver>=PHP5_VERSION_REQ) {
		$_SESSION['iwc3']['version']=$ver;
	} else { 
		die("PHP version required is ".PHP5_VERSION_REQ." or later.");
	}
}
include(VURENO_PATH."/iwc/engine/Framework.class.php");
Framework::needs("engine.Path");
Framework::needs("engine.Logger");
header('X-Content-Encoded-By: Vureno Framework 0.1a - Experimental');
header('X-UA-Compatible: IE=EmulateIE7');
?>